import request from "@/router/axios";

export const getPlacementsList = (params) => {
  return request({
    url: "/admin/carousel/image/list",
    method: "post",
    data: params,
  });
};


export const addPlacementsItem = (row) => {
  return request({
    url: "/admin/carousel/image/add",
    method: "post",
    data: row,
  });
};
export const updatePlacementsItem = (row) => {
  return request({
    url: "/admin/carousel/image/edit",
    method: "post",
    data: row,
  });
};
export const delPlacementsItem = (row) => {
  return request({
    url: "/admin/carousel/image/delete",
    method: "post",
    data: row,
  });
};



export const getAdList = (params) => {
  return request({
    url: "/admin/carousel/position/list",
    method: "post",
    data: params,
  });
};


export const addAdItem = (row) => {
  return request({
    url: "/admin/carousel/position/add",
    method: "post",
    data: row,
  });
};
export const updateAdItem = (row) => {
  return request({
    url: "/admin/carousel/position/edit",
    method: "post",
    data: row,
  });
};
export const delAdItem = (row) => {
  return request({
    url: "/admin/carousel/position/delete",
    method: "post",
    data: row,
  });
};
